<script src="/api/swfobject/swfobject.js"></script>

  
<script type="text/javascript">
    var params = {  
        BGColor: "#FFFFFF"
    };
    
    var attributes = {  
        id: "MultiPowUpload",  
        name: "MultiPowUpload"
    };
    
    
    url = "/com/multiuploadjs/php/saveFile.php";  //"?table=[php_property:table]&field=[php_property:table_field]";
    url = url.replace(/&amp;/g, "%26");
    url = url.replace(/&/g, "%26");
    
    var flashvars = {
      "uploadUrl": url,      
      "useExternalInterface": "true",
     
    };
    //Default MultiPowUpload should have minimum width=400 and minimum height=180
    swfobject.embedSWF("/api/multiupload/ElementITMultiPowUpload3.0.swf", "MultiPowUpload_holder", "400", "250", "10.0.0", "/api/multiupload/Extra/expressInstall.swf", flashvars, params, attributes);
    
    function applyTheme()
    {
        MultiPowUpload.setParameter("themeUrl","Extra/themes/"+document.getElementById("themepath").value);
    }




function MultiPowUpload_onComplete(type, fileIndex, response)
{
   // window.alert(type + " of file " + MultiPowUpload.fileList()[fileIndex].name + " completed. Response: " + response);
   
  // alert("response "+response);
}


function MultiPowUpload_onServerResponse(li)
    {    
        var responselable = document.getElementById("serverresponse");        
        alert(li.serverResponse);
        //responselable.innerHTML += "<strong>" + li.serverResponse + "</strong>";        
    }



function MultiPowUpload_onCompleteAbsolute(type, uploadedBytes)
{
    //window.alert(type + " process is complete. Total bytes transmitted " + uploadedBytes);
    
  
        if ('[php_property:reload]' == 'true') {
            location.reload(true);
        }

            //alert('fertig');
            //closeWindow();  
    
}





</script>